package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.CarBean;
import com.molichuxing.services.infrastructure.bean.LicencePlateBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 车牌表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2019-08-15
 */
public interface LicencePlateMapper extends RootMapper<LicencePlateBean> {

    /**
     * 根据车辆id获取车牌信息
     * @param carId
     * @return
     */
    @Override
    public LicencePlateBean getById(@Param("carId") Integer carId);

    /**
     * 新增车牌信息
     * @param licencePlateBean
     * @return
     */
    @Override
    public int create(LicencePlateBean licencePlateBean);

    /**
     * 编辑车牌信息
     * @param licencePlateBean
     * @return
     */
    public int modify(LicencePlateBean licencePlateBean);

}
